package com.teach.basic.model.po;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author hzz
 * @since 2020-02-18
 */

@ApiModel(value="Associator对象", description="会员表")
public class Associator implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "会员昵称")
    private String name;

    @ApiModelProperty(value = "0--未知 1--男 2--女")
    private String gender;


    @ApiModelProperty(value = "会员微信头像URL")
    private String picUrl;

    @ApiModelProperty(value = "会员积分")
    private Integer points;

    @NotBlank(message = "openid不能为空")
    @ApiModelProperty(value = "会员openid")
    private String openid;

    @ApiModelProperty(value = "手机")
    private String mobile;

    @ApiModelProperty(value = "邀请人")
    private String inviterAssociatorId;

    @ApiModelProperty(value = "角色 0普通用户 1商户 2管理者 3学生")
    private String role;

    @ApiModelProperty(value = "真实姓名，用于收货地址填写")
    private String realName;

    @ApiModelProperty(value = "最后签到时间")
    private String signInLastTime;

    @ApiModelProperty(value = "连续签到天数")
    private Integer signInKeepDay;

    @ApiModelProperty(value = "邀请码图片ID")
    private String inviteCode;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @TableLogic
    @ApiModelProperty(value = "逻辑删除1")
    private String state;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getInviterAssociatorId() {
        return inviterAssociatorId;
    }

    public void setInviterAssociatorId(String inviterAssociatorId) {
        this.inviterAssociatorId = inviterAssociatorId;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getSignInLastTime() {
        return signInLastTime;
    }

    public void setSignInLastTime(String signInLastTime) {
        this.signInLastTime = signInLastTime;
    }

    public Integer getSignInKeepDay() {
        return signInKeepDay;
    }

    public void setSignInKeepDay(Integer signInKeepDay) {
        this.signInKeepDay = signInKeepDay;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }


}
